home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 April: Mac OS SDK / Dev.CD Apr 98 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / AIncludes / Connections.a < prev    next >
Encoding:
Text File  |  1998-02-12  |  13.5 KB  |  543 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        Connections.a
  3. ;
  4. ;    Contains:    Communications Toolbox Connection Manager Interfaces.
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Release:    Universal Interfaces 3.1
  8. ;
  9. ;    Copyright:    © 1988-1998 by Apple Computer, Inc., all rights reserved
  10. ;
  11. ;    Bugs?:        Please include the the file and version information (from above) with
  12. ;                the problem description.  Developers belonging to one of the Apple
  13. ;                developer programs can submit bug reports to:
  14. ;
  15. ;                    devsupport@apple.com
  16. ;
  17. ;
  18.     IF &TYPE('__CONNECTIONS__') = 'UNDEFINED' THEN
  19. __CONNECTIONS__ SET 1
  20.  
  21.     IF &TYPE('__CONDITIONALMACROS__') = 'UNDEFINED' THEN
  22.     include 'ConditionalMacros.a'
  23.     ENDIF
  24.     IF &TYPE('__MACTYPES__') = 'UNDEFINED' THEN
  25.     include 'MacTypes.a'
  26.     ENDIF
  27.     IF &TYPE('__MIXEDMODE__') = 'UNDEFINED' THEN
  28.     include 'MixedMode.a'
  29.     ENDIF
  30.     IF &TYPE('__DIALOGS__') = 'UNDEFINED' THEN
  31.     include 'Dialogs.a'
  32.     ENDIF
  33.  
  34.  
  35. curCMVersion                    EQU        2                    ; current Connection Manager version
  36.  
  37. curConnEnvRecVers                EQU        0                    ;    current Connection Manager Environment Record version
  38.  
  39.                                                             ; CMErr 
  40. cmGenericError                    EQU        -1
  41. cmNoErr                            EQU        0
  42. cmRejected                        EQU        1
  43. cmFailed                        EQU        2
  44. cmTimeOut                        EQU        3
  45. cmNotOpen                        EQU        4
  46. cmNotClosed                        EQU        5
  47. cmNoRequestPending                EQU        6
  48. cmNotSupported                    EQU        7
  49. cmNoTools                        EQU        8
  50. cmUserCancel                    EQU        9
  51. cmUnknownError                    EQU        11
  52. ; typedef OSErr                         CMErr
  53.  
  54.  
  55.  
  56. cmData                            EQU        $00000001
  57. cmCntl                            EQU        $00000002
  58. cmAttn                            EQU        $00000004
  59. cmDataNoTimeout                    EQU        $00000010
  60. cmCntlNoTimeout                    EQU        $00000020
  61. cmAttnNoTimeout                    EQU        $00000040
  62. cmDataClean                        EQU        $00000100
  63. cmCntlClean                        EQU        $00000200
  64. cmAttnClean                        EQU        $00000400            ;        Only for CMRecFlags (not CMChannel) in the rest of this enum    
  65. cmNoMenus                        EQU        $00010000
  66. cmQuiet                            EQU        $00020000
  67. cmConfigChanged                    EQU        $00040000
  68. ;  CMRecFlags and CMChannel        
  69. ;         Low word of CMRecFlags is same as CMChannel    
  70. ; typedef long                             CMRecFlags
  71.  
  72. ; typedef short                         CMChannel
  73.  
  74.  
  75.  
  76.  
  77. cmStatusOpening                    EQU        $00000001
  78. cmStatusOpen                    EQU        $00000002
  79. cmStatusClosing                    EQU        $00000004
  80. cmStatusDataAvail                EQU        $00000008
  81. cmStatusCntlAvail                EQU        $00000010
  82. cmStatusAttnAvail                EQU        $00000020
  83. cmStatusDRPend                    EQU        $00000040            ; data read pending    
  84. cmStatusDWPend                    EQU        $00000080            ; data write pending    
  85. cmStatusCRPend                    EQU        $00000100            ; cntl read pending    
  86. cmStatusCWPend                    EQU        $00000200            ; cntl write pending    
  87. cmStatusARPend                    EQU        $00000400            ; attn read pending    
  88. cmStatusAWPend                    EQU        $00000800            ; attn write pending    
  89. cmStatusBreakPend                EQU        $00001000
  90. cmStatusListenPend                EQU        $00002000
  91. cmStatusIncomingCallPresent        EQU        $00004000
  92. cmStatusReserved0                EQU        $00008000
  93. ; typedef unsigned long                 CMStatFlags
  94.  
  95.  
  96. cmDataIn                        EQU        0
  97. cmDataOut                        EQU        1
  98. cmCntlIn                        EQU        2
  99. cmCntlOut                        EQU        3
  100. cmAttnIn                        EQU        4
  101. cmAttnOut                        EQU        5
  102. cmRsrvIn                        EQU        6
  103. cmRsrvOut                        EQU        7
  104. ; typedef unsigned short                 CMBufFields
  105.  
  106. CMBuffers                RECORD 0
  107. elements                 ds.l    8
  108. sizeof                     EQU *                    ; size:   $20 (32)
  109.                         ENDR
  110.  
  111.  
  112. CMBufferSizes            RECORD 0
  113. elements                 ds.l    8
  114. sizeof                     EQU *                    ; size:   $20 (32)
  115.                         ENDR
  116.  
  117.  
  118.  
  119. cmSearchSevenBit                EQU        $00000001
  120. ; typedef unsigned short                 CMSearchFlags
  121.  
  122.  
  123. cmFlagsEOM                        EQU        $00000001
  124. ; typedef unsigned short                 CMFlags
  125.  
  126. ConnEnvironRec            RECORD 0
  127. version                     ds.w    1                ; offset: $0 (0)
  128. baudRate                 ds.l    1                ; offset: $2 (2)
  129. dataBits                 ds.w    1                ; offset: $6 (6)
  130. channels                 ds.w    1                ; offset: $8 (8)
  131. swFlowControl             ds.b    1                ; offset: $A (10)
  132. hwFlowControl             ds.b    1                ; offset: $B (11)
  133. flags                     ds.w    1                ; offset: $C (12)
  134. sizeof                     EQU *                    ; size:   $E (14)
  135.                         ENDR
  136. ; typedef struct ConnEnvironRec *        ConnEnvironRecPtr
  137.  
  138.  
  139.  
  140. ; typedef ConnRecord *                    ConnPtr
  141.  
  142. ; typedef ConnPtr *                        ConnHandle
  143.  
  144. ConnRecord                RECORD 0
  145. procID                     ds.w    1                ; offset: $0 (0)
  146. flags                     ds.l    1                ; offset: $2 (2)
  147. errCode                     ds.w    1                ; offset: $6 (6)
  148. refCon                     ds.l    1                ; offset: $8 (8)
  149. userData                 ds.l    1                ; offset: $C (12)
  150. defProc                     ds.l    1                ; offset: $10 (16)
  151. config                     ds.l    1                ; offset: $14 (20)
  152. oldConfig                 ds.l    1                ; offset: $18 (24)
  153. asyncEOM                 ds.l    1                ; offset: $1C (28)
  154. reserved1                 ds.l    1                ; offset: $20 (32)
  155. reserved2                 ds.l    1                ; offset: $24 (36)
  156. cmPrivate                 ds.l    1                ; offset: $28 (40)
  157. bufferArray                 ds        CMBuffers        ; offset: $2C (44)
  158. bufSizes                 ds        CMBufferSizes    ; offset: $4C (76)
  159. mluField                 ds.l    1                ; offset: $6C (108)
  160. asyncCount                 ds        CMBufferSizes    ; offset: $70 (112)
  161. sizeof                     EQU *                    ; size:   $90 (144)
  162.                         ENDR
  163.  
  164.                                                             ; CMIOPB constants and structure 
  165. cmIOPBQType                        EQU        10
  166. cmIOPBversion                    EQU        0
  167. CMIOPB                    RECORD 0
  168. qLink                     ds.l    1                ; offset: $0 (0)
  169. qType                     ds.w    1                ; offset: $4 (4)        ;  cmIOPBQType 
  170. hConn                     ds.l    1                ; offset: $6 (6)
  171. theBuffer                 ds.l    1                ; offset: $A (10)
  172. count                     ds.l    1                ; offset: $E (14)
  173. flags                     ds.w    1                ; offset: $12 (18)
  174. userCompletion             ds.l    1                ; offset: $14 (20)
  175. timeout                     ds.l    1                ; offset: $18 (24)
  176. errCode                     ds.w    1                ; offset: $1C (28)
  177. channel                     ds.w    1                ; offset: $1E (30)
  178. asyncEOM                 ds.l    1                ; offset: $20 (32)
  179. reserved1                 ds.l    1                ; offset: $24 (36)
  180. reserved2                 ds.w    1                ; offset: $28 (40)
  181. version                     ds.w    1                ; offset: $2A (42)        ;  cmIOPBversion 
  182. refCon                     ds.l    1                ; offset: $2C (44)        ;  for application 
  183. toolData1                 ds.l    1                ; offset: $30 (48)        ;  for tool 
  184. toolData2                 ds.l    1                ; offset: $34 (52)        ;  for tool 
  185. sizeof                     EQU *                    ; size:   $38 (56)
  186.                         ENDR
  187. ; typedef struct CMIOPB *                CMIOPBPtr
  188.  
  189.  
  190.  
  191. ;
  192. ; pascal CMErr InitCM(void )
  193. ;
  194.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  195.         IMPORT_CFM_FUNCTION InitCM
  196.     ENDIF
  197.  
  198. ;
  199. ; pascal Handle CMGetVersion(ConnHandle hConn)
  200. ;
  201.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  202.         IMPORT_CFM_FUNCTION CMGetVersion
  203.     ENDIF
  204.  
  205. ;
  206. ; pascal short CMGetCMVersion(void )
  207. ;
  208.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  209.         IMPORT_CFM_FUNCTION CMGetCMVersion
  210.     ENDIF
  211.  
  212. ;
  213. ; pascal ConnHandle CMNew(short procID, CMRecFlags flags, CMBufferSizes desiredSizes, long refCon, long userData)
  214. ;
  215.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  216.         IMPORT_CFM_FUNCTION CMNew
  217.     ENDIF
  218.  
  219. ;
  220. ; pascal void CMDispose(ConnHandle hConn)
  221. ;
  222.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  223.         IMPORT_CFM_FUNCTION CMDispose
  224.     ENDIF
  225.  
  226. ;
  227. ; pascal CMErr CMListen(ConnHandle hConn, Boolean async, ConnectionCompletionUPP completor, long timeout)
  228. ;
  229.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  230.         IMPORT_CFM_FUNCTION CMListen
  231.     ENDIF
  232.  
  233. ;
  234. ; pascal CMErr CMAccept(ConnHandle hConn, Boolean accept)
  235. ;
  236.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  237.         IMPORT_CFM_FUNCTION CMAccept
  238.     ENDIF
  239.  
  240. ;
  241. ; pascal CMErr CMOpen(ConnHandle hConn, Boolean async, ConnectionCompletionUPP completor, long timeout)
  242. ;
  243.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  244.         IMPORT_CFM_FUNCTION CMOpen
  245.     ENDIF
  246.  
  247. ;
  248. ; pascal CMErr CMClose(ConnHandle hConn, Boolean async, ConnectionCompletionUPP completor, long timeout, Boolean now)
  249. ;
  250.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  251.         IMPORT_CFM_FUNCTION CMClose
  252.     ENDIF
  253.  
  254. ;
  255. ; pascal CMErr CMAbort(ConnHandle hConn)
  256. ;
  257.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  258.         IMPORT_CFM_FUNCTION CMAbort
  259.     ENDIF
  260.  
  261. ;
  262. ; pascal CMErr CMStatus(ConnHandle hConn, CMBufferSizes sizes, CMStatFlags *flags)
  263. ;
  264.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  265.         IMPORT_CFM_FUNCTION CMStatus
  266.     ENDIF
  267.  
  268. ;
  269. ; pascal void CMIdle(ConnHandle hConn)
  270. ;
  271.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  272.         IMPORT_CFM_FUNCTION CMIdle
  273.     ENDIF
  274.  
  275. ;
  276. ; pascal void CMReset(ConnHandle hConn)
  277. ;
  278.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  279.         IMPORT_CFM_FUNCTION CMReset
  280.     ENDIF
  281.  
  282. ;
  283. ; pascal void CMBreak(ConnHandle hConn, long duration, Boolean async, ConnectionCompletionUPP completor)
  284. ;
  285.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  286.         IMPORT_CFM_FUNCTION CMBreak
  287.     ENDIF
  288.  
  289. ;
  290. ; pascal CMErr CMRead(ConnHandle hConn, void *theBuffer, long *toRead, CMChannel theChannel, Boolean async, ConnectionCompletionUPP completor, long timeout, CMFlags *flags)
  291. ;
  292.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  293.         IMPORT_CFM_FUNCTION CMRead
  294.     ENDIF
  295.  
  296. ;
  297. ; pascal CMErr CMWrite(ConnHandle hConn, const void *theBuffer, long *toWrite, CMChannel theChannel, Boolean async, ConnectionCompletionUPP completor, long timeout, CMFlags flags)
  298. ;
  299.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  300.         IMPORT_CFM_FUNCTION CMWrite
  301.     ENDIF
  302.  
  303. ;
  304. ; pascal CMErr CMIOKill(ConnHandle hConn, short which)
  305. ;
  306.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  307.         IMPORT_CFM_FUNCTION CMIOKill
  308.     ENDIF
  309.  
  310. ;
  311. ; pascal void CMActivate(ConnHandle hConn, Boolean activate)
  312. ;
  313.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  314.         IMPORT_CFM_FUNCTION CMActivate
  315.     ENDIF
  316.  
  317. ;
  318. ; pascal void CMResume(ConnHandle hConn, Boolean resume)
  319. ;
  320.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  321.         IMPORT_CFM_FUNCTION CMResume
  322.     ENDIF
  323.  
  324. ;
  325. ; pascal Boolean CMMenu(ConnHandle hConn, short menuID, short item)
  326. ;
  327.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  328.         IMPORT_CFM_FUNCTION CMMenu
  329.     ENDIF
  330.  
  331. ;
  332. ; pascal Boolean CMValidate(ConnHandle hConn)
  333. ;
  334.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  335.         IMPORT_CFM_FUNCTION CMValidate
  336.     ENDIF
  337.  
  338. ;
  339. ; pascal void CMDefault(Ptr *theConfig, short procID, Boolean allocate)
  340. ;
  341.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  342.         IMPORT_CFM_FUNCTION CMDefault
  343.     ENDIF
  344.  
  345. ;
  346. ; pascal Handle CMSetupPreflight(short procID, long *magicCookie)
  347. ;
  348.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  349.         IMPORT_CFM_FUNCTION CMSetupPreflight
  350.     ENDIF
  351.  
  352. ;
  353. ; pascal Boolean CMSetupFilter(short procID, const void *theConfig, short count, DialogPtr theDialog, EventRecord *theEvent, short *theItem, long *magicCookie)
  354. ;
  355.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  356.         IMPORT_CFM_FUNCTION CMSetupFilter
  357.     ENDIF
  358.  
  359. ;
  360. ; pascal void CMSetupSetup(short procID, const void *theConfig, short count, DialogPtr theDialog, long *magicCookie)
  361. ;
  362.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  363.         IMPORT_CFM_FUNCTION CMSetupSetup
  364.     ENDIF
  365.  
  366. ;
  367. ; pascal void CMSetupItem(short procID, const void *theConfig, short count, DialogPtr theDialog, short *theItem, long *magicCookie)
  368. ;
  369.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  370.         IMPORT_CFM_FUNCTION CMSetupItem
  371.     ENDIF
  372.  
  373. ;
  374. ; pascal void CMSetupXCleanup(short procID, const void *theConfig, short count, DialogPtr theDialog, Boolean OKed, long *magicCookie)
  375. ;
  376.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  377.         IMPORT_CFM_FUNCTION CMSetupXCleanup
  378.     ENDIF
  379.  
  380. ;
  381. ; pascal void CMSetupPostflight(short procID)
  382. ;
  383.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  384.         IMPORT_CFM_FUNCTION CMSetupPostflight
  385.     ENDIF
  386.  
  387. ;
  388. ; pascal Ptr CMGetConfig(ConnHandle hConn)
  389. ;
  390.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  391.         IMPORT_CFM_FUNCTION CMGetConfig
  392.     ENDIF
  393.  
  394. ;
  395. ; pascal short CMSetConfig(ConnHandle hConn, const void *thePtr)
  396. ;
  397.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  398.         IMPORT_CFM_FUNCTION CMSetConfig
  399.     ENDIF
  400.  
  401. ;
  402. ; pascal OSErr CMIntlToEnglish(ConnHandle hConn, const void *inputPtr, Ptr *outputPtr, short language)
  403. ;
  404.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  405.         IMPORT_CFM_FUNCTION CMIntlToEnglish
  406.     ENDIF
  407.  
  408. ;
  409. ; pascal OSErr CMEnglishToIntl(ConnHandle hConn, const void *inputPtr, Ptr *outputPtr, short language)
  410. ;
  411.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  412.         IMPORT_CFM_FUNCTION CMEnglishToIntl
  413.     ENDIF
  414.  
  415. ;
  416. ; pascal long CMAddSearch(ConnHandle hConn, ConstStr255Param theString, CMSearchFlags flags, ConnectionSearchCallBackUPP callBack)
  417. ;
  418.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  419.         IMPORT_CFM_FUNCTION CMAddSearch
  420.     ENDIF
  421.  
  422. ;
  423. ; pascal void CMRemoveSearch(ConnHandle hConn, long refnum)
  424. ;
  425.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  426.         IMPORT_CFM_FUNCTION CMRemoveSearch
  427.     ENDIF
  428.  
  429. ;
  430. ; pascal void CMClearSearch(ConnHandle hConn)
  431. ;
  432.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  433.         IMPORT_CFM_FUNCTION CMClearSearch
  434.     ENDIF
  435.  
  436. ;
  437. ; pascal CMErr CMGetConnEnvirons(ConnHandle hConn, ConnEnvironRec *theEnvirons)
  438. ;
  439.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  440.         IMPORT_CFM_FUNCTION CMGetConnEnvirons
  441.     ENDIF
  442.  
  443. ;
  444. ; pascal short CMChoose(ConnHandle *hConn, Point where, ConnectionChooseIdleUPP idle)
  445. ;
  446.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  447.         IMPORT_CFM_FUNCTION CMChoose
  448.     ENDIF
  449.  
  450. ;
  451. ; pascal void CMEvent(ConnHandle hConn, const EventRecord *theEvent)
  452. ;
  453.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  454.         IMPORT_CFM_FUNCTION CMEvent
  455.     ENDIF
  456.  
  457. ;
  458. ; pascal void CMGetToolName(short procID, Str255 name)
  459. ;
  460.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  461.         IMPORT_CFM_FUNCTION CMGetToolName
  462.     ENDIF
  463.  
  464. ;
  465. ; pascal short CMGetProcID(ConstStr255Param name)
  466. ;
  467.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  468.         IMPORT_CFM_FUNCTION CMGetProcID
  469.     ENDIF
  470.  
  471. ;
  472. ; pascal void CMSetRefCon(ConnHandle hConn, long refCon)
  473. ;
  474.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  475.         IMPORT_CFM_FUNCTION CMSetRefCon
  476.     ENDIF
  477.  
  478. ;
  479. ; pascal long CMGetRefCon(ConnHandle hConn)
  480. ;
  481.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  482.         IMPORT_CFM_FUNCTION CMGetRefCon
  483.     ENDIF
  484.  
  485. ;
  486. ; pascal long CMGetUserData(ConnHandle hConn)
  487. ;
  488.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  489.         IMPORT_CFM_FUNCTION CMGetUserData
  490.     ENDIF
  491.  
  492. ;
  493. ; pascal void CMSetUserData(ConnHandle hConn, long userData)
  494. ;
  495.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  496.         IMPORT_CFM_FUNCTION CMSetUserData
  497.     ENDIF
  498.  
  499. ;
  500. ; pascal void CMGetErrorString(ConnHandle hConn, short id, Str255 errMsg)
  501. ;
  502.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  503.         IMPORT_CFM_FUNCTION CMGetErrorString
  504.     ENDIF
  505.  
  506. ;
  507. ; pascal CMErr CMNewIOPB(ConnHandle hConn, CMIOPBPtr *theIOPB)
  508. ;
  509.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  510.         IMPORT_CFM_FUNCTION CMNewIOPB
  511.     ENDIF
  512.  
  513. ;
  514. ; pascal CMErr CMDisposeIOPB(ConnHandle hConn, CMIOPBPtr theIOPB)
  515. ;
  516.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  517.         IMPORT_CFM_FUNCTION CMDisposeIOPB
  518.     ENDIF
  519.  
  520. ;
  521. ; pascal CMErr CMPBRead(ConnHandle hConn, CMIOPBPtr theIOPB, Boolean async)
  522. ;
  523.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  524.         IMPORT_CFM_FUNCTION CMPBRead
  525.     ENDIF
  526.  
  527. ;
  528. ; pascal CMErr CMPBWrite(ConnHandle hConn, CMIOPBPtr theIOPB, Boolean async)
  529. ;
  530.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  531.         IMPORT_CFM_FUNCTION CMPBWrite
  532.     ENDIF
  533.  
  534. ;
  535. ; pascal CMErr CMPBIOKill(ConnHandle hConn, CMIOPBPtr theIOPB)
  536. ;
  537.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  538.         IMPORT_CFM_FUNCTION CMPBIOKill
  539.     ENDIF
  540.  
  541.     ENDIF ; __CONNECTIONS__ 
  542.  
  543.